﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using XXX.Bo;
using XXX.Models.XXXEntities;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace XXX.api.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class GetExpressInfoController : ControllerBase
    { 
        private readonly ILogger<GetExpressInfoController> _logger;
        public GetExpressInfoController(ILogger<GetExpressInfoController> logger)
        { 
            _logger = logger;
        } 

        [HttpPost]
        public Models.RetModel Post([FromBody] Models.XXXEntities.GetExpressInfo model)
        {
            //_logger.LogInformation((model));
           
            Models.RetModel ret = DBService.GetExpressInfoInfo(model.cSOCode);
            return ret;
        }

       

    }
}
